package com.ruoyi.procategory.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 商品分类/类别对象 pro_category
 * 
 * @author ruoyi
 * @date 2025-02-12
 */
public class ProCategory extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 表的主键 */
    private Long id;

    /** 类别名称 */
    @Excel(name = "类别名称")
    private String name;

    /** 上级名id,1为主页，其他类目必须依附于主页 */
    @Excel(name = "上级名id,1为主页，其他类目必须依附于主页")
    private Long superNameId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSuperNameId(Long superNameId) 
    {
        this.superNameId = superNameId;
    }

    public Long getSuperNameId() 
    {
        return superNameId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("superNameId", getSuperNameId())
            .toString();
    }
}
